package com.freeter.common.enums;

/**
 * 1 启用、0 禁用
 */
public enum DisableEnum {
    MALE("启用",1), WOMAN("禁用",0);

    private final String name;
    private final int code;

    DisableEnum(String name, int code) {
        this.name = name;
        this.code = code;
    }
    public static String getName(int code){
        for( DisableEnum st : DisableEnum.values()){
            if(st.code == code){return st.name;}
        }
        return "";
    }
}
